package com.sren.initializrstart.service;

import com.sren.initializrstart.vo.WeatherResponse;

/**
 * @author sren
 * @create 2018-12-06 下午4:26
 **/

public interface WeatherDataService {

    /**
     * 通过城市编码获取天气
     * @param cityId
     * @return
     */
    WeatherResponse getDataByCityId(String cityId);

    /**
     * 通过城市名称获取天气
     * @param cityName
     * @return
     */
    WeatherResponse getDataByCityName(String cityName);

    /**
     * 根据城市id同步数据
     * @param cityId
     */
    void syncDataByCityId(String cityId);

    void syncDataByCityName(String cityName);

}
